package metrics

import "github.com/prometheus/client_golang/prometheus"

var (
	ClusterSpecReplicas = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Namespace: "phant_operator",
			Subsystem: "cluster",
			Name:      "spec_replicas",
			Help:      "Desired replicas of each component in TidbCluster",
		}, []string{LabelNamespace, LabelName, LabelComponent})

	ClusterUpdateErrors = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Namespace: "phant_operator",
			Subsystem: "cluster",
			Name:      "update_errors",
			Help:      "Number of errors generated in each stage when updating TiDB Clusters",
		}, []string{LabelNamespace, LabelName, LabelComponent})
)
